package cn.kwq.project_manger.utils;

import cn.dev33.satoken.secure.SaSecureUtil;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class AesUtils {
    @Value("${WeChat.AES}")
    public String AES;

    //加密
    public  String S2AES(String str){
        return SaSecureUtil.aesEncrypt(AES, str);
    }

    //解密
    public  String AES2S(String str){
        return SaSecureUtil.aesDecrypt(AES, str);
    }
}
